package com.youi.entity;

import java.util.Date;
import java.util.List;

import com.youi.common.DelStatus;

import java.sql.*;


import java.io.Serializable;


/**
 * 订单商品信息
 * @author XJY
 */
public class Ordergoods implements Serializable {

	private Long id;							//ID
	private Date gmtCreated;					//创建时间
	private Integer delStatus;					//删除状态（0否 1是）
	private Date gmtModify;					    //最后修改时间
	private Long orderId;					    //订单id
	private Long merchantId;					//商家id
	private Long goodsId;					    //商品id
	private String goodsImg;				    //商品缩略图
	private String name;					    //商品名称
	private String goodsNo;					    //商品编码
	private String internationalNo;				//国际条码
	private String goodsType;					//商品类别(多个逗号隔开)
	private String specification;				//规格(多个逗号隔开)
	private Double ecPrice;						//电商价(根据现价自动增加30%价格)
	private Double slaePrice;					//商品价格(现价)
	private Double originalPrice;				//商品价格(原价)
	private Double costPrice;					//商品价格(成本)
	private Integer count;					    //商品数量
	private Double amount;					    //商品总额
	private Double weight;					    //商品重量
                                                
	private String goodsTypeCode;				//分类编码
	
	
    public Ordergoods(){

    }

    public Ordergoods(Long id,Date gmtCreated,Integer delStatus,Date gmtModify) {
       this.id=id;
       this.gmtCreated=gmtCreated;
       this.delStatus=delStatus;
       this.gmtModify=gmtModify;
    }


    public Ordergoods(Long orderId,Long merchantId,Long goodsId,String goodsImg,String name,String goodsNo,String internationalNo,String specification,String goodsType,Double ecPrice,Double slaePrice,Double originalPrice,Double costPrice,Integer count,Double amount,Double weight) {
       this.gmtCreated=new Date();
       this.delStatus=DelStatus.NODEL;
       this.gmtModify=gmtCreated;
       this.merchantId=merchantId;
       this.orderId=orderId;
       this.goodsId=goodsId;
       this.goodsImg=goodsImg;
       this.name=name;
       this.goodsNo=goodsNo;
       this.internationalNo=internationalNo;
       this.specification=specification;
       this.goodsType=goodsType;
       this.ecPrice=ecPrice;
       this.slaePrice=slaePrice;
       this.originalPrice=originalPrice;
       this.costPrice=costPrice;
       this.count=count;
       this.amount=amount;
       this.weight=weight;
    }


	public void setId(Long id){
		this.id=id;
	}

	public Long getId(){
		return id;
	}

	public void setGmtCreated(Date gmtCreated){
		this.gmtCreated=gmtCreated;
	}

	public Date getGmtCreated(){
		return gmtCreated;
	}

	public void setDelStatus(Integer delStatus){
		this.delStatus=delStatus;
	}

	public Integer getDelStatus(){
		return delStatus;
	}

	public void setGmtModify(Date gmtModify){
		this.gmtModify=gmtModify;
	}

	public Date getGmtModify(){
		return gmtModify;
	}

	public void setOrderId(Long orderId){
		this.orderId=orderId;
	}

	public Long getOrderId(){
		return orderId;
	}

	public void setGoodsId(Long goodsId){
		this.goodsId=goodsId;
	}

	public Long getGoodsId(){
		return goodsId;
	}

	public void setGoodsImg(String goodsImg){
		this.goodsImg=goodsImg;
	}

	public String getGoodsImg(){
		return goodsImg;
	}

	public void setName(String name){
		this.name=name;
	}

	public String getName(){
		return name;
	}

	public void setGoodsNo(String goodsNo){
		this.goodsNo=goodsNo;
	}

	public String getGoodsNo(){
		return goodsNo;
	}

	public void setInternationalNo(String internationalNo){
		this.internationalNo=internationalNo;
	}

	public String getInternationalNo(){
		return internationalNo;
	}

	public void setGoodsType(String goodsType){
		this.goodsType=goodsType;
	}

	public String getGoodsType(){
		return goodsType;
	}

	public void setEcPrice(Double ecPrice){
		this.ecPrice=ecPrice;
	}

	public Double getEcPrice(){
		return ecPrice;
	}

	public void setSlaePrice(Double slaePrice){
		this.slaePrice=slaePrice;
	}

	public Double getSlaePrice(){
		return slaePrice;
	}

	public void setOriginalPrice(Double originalPrice){
		this.originalPrice=originalPrice;
	}

	public Double getOriginalPrice(){
		return originalPrice;
	}

	public void setCostPrice(Double costPrice){
		this.costPrice=costPrice;
	}

	public Double getCostPrice(){
		return costPrice;
	}

	public void setCount(Integer count){
		this.count=count;
	}

	public Integer getCount(){
		return count;
	}

	public void setAmount(Double amount){
		this.amount=amount;
	}

	public Double getAmount(){
		return amount;
	}

	public void setWeight(Double weight){
		this.weight=weight;
	}

	public Double getWeight(){
		return weight;
	}

	public Long getMerchantId() {
		return merchantId;
	}

	public void setMerchantId(Long merchantId) {
		this.merchantId = merchantId;
	}

	public String getSpecification() {
		return specification;
	}

	public void setSpecification(String specification) {
		this.specification = specification;
	}

	public String getGoodsTypeCode() {
		return goodsTypeCode;
	}

	public void setGoodsTypeCode(String goodsTypeCode) {
		this.goodsTypeCode = goodsTypeCode;
	}




}
